package cn.hanyx.coder.design.pattern.behavioral.state.demo03.state;

/**
 * State
 *
 * @author hanyx
 * @date 2020/06/08
 */
public enum State {
    SMALL(0),
    SUPER(1),
    FIRE(2),
    CAPE(3),
    DIE(4);

    private int value;

    private State(int value) {
        this.value = value;
    }

    public int getValue() {
        return value;
    }

    public static void main(String[] args) {
        System.out.println(State.CAPE.getValue());
    }
}
